package com.mdh.runerrands.dao;

import com.mdh.runerrands.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentDao {
    boolean batchDelete(int ...ids);
    boolean updateComment(int id ,String content);
    boolean delete(int id);
    List<Comment> selectByCusId(int cusId);
    List<Comment> query(int page,int pageSize,String content,Long commentTime,Integer cusId,Integer orderId);
    int selectCount(String content,Long commentTime,Integer cusId,Integer orderId);
    boolean insert(Comment comment);
    boolean update(Comment comment);
    List<Comment> selectByOrderId(Integer orderId);

}
